<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>

    <div class="box" data-name="lik" data-gender="male"></div>

<script>
    let box = document.querySelector(".box")
    console.log(box.dataset)
</script>
    
</body>
</html>